li = [54, 26, 93, 17, 77, 31, 44, 55, 20]
for i in range(len(li) - 1):
    for j in range(len(li) - i - 1):
        if li[j] > li[j + 1]:
            li[j], li[j + 1] = li[j + 1], li[j]
print(li)
